﻿@addTagHelper *, WebVella.Erp.Plugins.Core
@addTagHelper *, WebVella.Erp.Web
@addTagHelper *, WebVella.TagHelpers
@using WebVella.Erp.Web.Utils;
@using WebVella.Erp.Web.Components;
@using WebVella.Erp.Web.Models;
@{
	var options = (PcPageHeader.PcPageHeaderOptions)ViewBag.Options;
	var title = (string)ViewBag.ProccessedTitle;
	var subTitle = (string)ViewBag.ProccessedSubTitle;
	var areaLabel = (string)ViewBag.ProccessedAreaLabel;
	var areaSubLabel = (string)ViewBag.ProccessedAreaSubLabel;
	var description = (string)ViewBag.ProccessedDescription;
	var color = (string)ViewBag.ProccessedColor;
	var iconColor = (string)ViewBag.ProccessedIconColor;
	var iconClass = (string)ViewBag.ProccessedIconClass;
	var returnUrl = (string)ViewBag.ProccessedReturnUrl;
	var node = (PageBodyNode)ViewBag.Node;
	var pageSwitchItems = (List<PageSwitchItem>)ViewBag.PageSwitchItems;
}

<wv-page-header color="@color" icon-color="@iconColor" area-label="@areaLabel" area-sublabel="@areaSubLabel" title="@title"
	subtitle="@subTitle" description="@description" icon-class="@iconClass" return-url="@returnUrl" page-switch-items="@pageSwitchItems">
	<wv-page-header-actions>
		<wv-pb-node-container parent-node-id="@node.Id" container-id="actions"></wv-pb-node-container>
	</wv-page-header-actions>
	<wv-page-header-actions-aux>
		<wv-pb-node-container parent-node-id="@node.Id" container-id="actions-aux"></wv-pb-node-container>
	</wv-page-header-actions-aux>
	<wv-page-header-toolbar>
		<wv-pb-node-container parent-node-id="@node.Id" container-id="toolbar"></wv-pb-node-container>
	</wv-page-header-toolbar>
</wv-page-header>